package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;
import java.util.Map;

public interface IEmployeeService {
    void saveOrUpdate(Employee entity);

    void delete(Long id);

    Employee get(Long id);

    List<Employee> listAll();

    PageResult query(QueryObject qo);

    Employee getByUsername(String name);

    void changeState(Long id);

    boolean validateUsernname(String name, Long id);

    List<Map<String,Object>> selectName();
}
